const nodemailer = require("nodemailer");

module.exports = {
    config: {
        host: "smtp.qq.com",
        port: 587,
        secure: false, // true for 465, false for other ports
        auth: {
            user: "1490814083@qq.com", // generated ethereal user
            pass: "vctsdrzqfdhcjgif" // generated ethereal password
        }
    },
    get transporter() {
        return nodemailer.createTransport(this.config)
    },
    get verifyCode() {
        return Math.random().toString().substring(2, 6);
    }
};